label: Remove GtkEventBox mention from docs
authorTimm Bäder <mail@baedert.org>
Sun, 16 Jul 2017 14:45:36 +0000 (16:45 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:16 +0000 (21:27 -0400)
Packing the label inside a GtkEventBox is not necessary anymore for it
to receive events.

gtk/gtklabel.c

index ab8ce366736a632e37e5c082b292346e28b62e12..41d7c3c8dbd8b9777d652679c2bdfd3231fdfc13 100644 (file)
@@ -5433,10 +5433,7 @@ gtk_label_get_layout (GtkLabel *label)
  * Obtains the coordinates where the label will draw the #PangoLayout
  * representing the text in the label; useful to convert mouse events
  * into coordinates inside the #PangoLayout, e.g. to take some action
- * if some part of the label is clicked. Of course you will need to
- * create a #GtkEventBox to receive the events, and pack the label
- * inside it, since labels are windowless (they return %FALSE from
- * gtk_widget_get_has_window()). Remember
+ * if some part of the label is clicked. Remember
  * when using the #PangoLayout functions you need to convert to
  * and from pixels using PANGO_PIXELS() or #PANGO_SCALE.
  **/